package english;

import java.util.UUID;

import services.DictionaryService;

public class EnglishDictionary implements DictionaryService {

	private String id;

	public EnglishDictionary() {
		this.id = UUID.randomUUID().toString();
	}

	public boolean checkWord(String word) {
		System.err.println("Instance id:" + this.id);
		fibonnaci(word.length() + 30);
		return true;
	}

	@Override
	public String getId() {
		return this.id;

	}

	private int fibonnaci(int i) {

		if (i < 2) {
			return 1;
		} else {
			return fibonnaci(i - 2) + fibonnaci(i - 1);
		}
	}
}
